home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d3
/
rettig.arc
/
TRSOURCE.EXE
/
_TR_TOUP.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-10-22
|
517b
|
29 lines
/********
* _TR_TOUP.C
*
* by Leonard Zerman
* modified by Tom Rettig
*
* Placed in the public domain by Tom Rettig Associates, 10/22/1990.
*
* Syntax: _tr_toup(c)
* Return: The uppercase of whatever string is passed.
* Note : Valid with ASCII character set only.
********/
#include "trlib.h"
char *_tr_toup(c)
char *c;
{
char *d = c;
while (*c)
{
if ( *c >= 'a' && *c <= 'z' )
*c = (*c - UPPER);
c++;
}
return(d);
}
/* eof */